.w {
    width: 1240px;
    margin: 0 auto;
}

.xtx-center {
    /* background-color: antiquewhite; */
    margin-top: 20px;
    display: flex;
    margin-bottom: 20px;
}

/* 左侧 */
.xtx-center .left {
    width: 220px;
    background-color: white;
    margin-right: 20px;
    height: 1100px;
}

.xtx-center .left .left-nav {
    font-size: 18px;
    font-weight: 400;
    padding: 20px 52px 5px;
    border-top: 1px solid #f6f6f6;
}

.xtx-center .left .left-one {
    position: relative;
    line-height: 1;
    padding: 0 52px 10px;
}

.xtx-center .left .left-one a {
    display: block;
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.xtx-center .left a::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #5eb69c;
    border-radius: 50%;
    display: none;
}

.xtx-center .left a:hover,
.xtx-center .left a:hover::before {
    color: #5eb69c;
}


/* 右侧 */
.xtx-center .right {
    flex: 1;
    /* background-color: white; */
}

.xtx-center .right .overview {
    background-color: #fff;
    padding: 20px 0;
    display: flex;
    background-image: url(http://erabbit.itheima.net/img/center-bg.31e0daef.png);
}

.xtx-center .right .overview .item {
    flex: 1;
    display: flex;
    justify-content: space-evenly;
    text-align: center;
}

.xtx-center .right .overview .item .act {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    margin-left: -200px;
    overflow: hidden;
}

.xtx-center .right .overview .item .act img {
    width: 100%;
    height: 100%;
}

.xtx-center .right .overview .item h4 {
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    margin-left: -200px;
    padding: 20px 0;
}

.xtx-center .right .overview .item p {
    font-size: 16px;
    font-weight: normal;
    color: #333;
    margin-bottom: 5px;
}

.xtx-center .right .overview .item .iconfont {
    font-size: 35px;
    color: #fff;
    margin-bottom: 8px;
}

/* 商品列表 */
.xtx-center .right .home-panel {
    background-color: #fff;
    padding: 0 20px;
    margin-top: 20px;
    height: 400px;
}

.xtx-center .right .home-panel .header {
    height: 66px;
    border-bottom: 1px solid #f5f5f5;
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.xtx-center .right .home-panel .header h4 {
    font-size: 22px;
    font-weight: 400;
}

.xtx-center .right .home-panel .header a {
    font-size: 16px;
    vertical-align: middle;
    margin-right: 4px;
    color: #999;
}

.xtx-center .right .home-panel .list {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
}

.xtx-center .right .home-panel .list a {
    display: block;
    width: 220px;
    padding: 20px 30px 0;
    text-align: center;
    transition: all .5s;
    background-color: #f6f6f6;
}

.xtx-center .right .home-panel .list a img {
    width: 160px;
    height: 160px;
}

.xtx-center .right .home-panel .list a .one {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-top: 10px;
    font-size: 16px;
    color: #333;
}

.xtx-center .right .home-panel .list a .two {
    padding-top: 10px;
    font-size: 16px;
    color: #666;
}

.xtx-center .right .home-panel .list a .three {
    padding-top: 10px;
    color: #cf4444;
    font-size: 20px;
}

.xtx-center .right .home-panel .list a:hover {
    top: 10px;
    box-shadow: 0 5px 5px 2px rgba(0, 0, 0, .5);
    animation-play-state: paused;
}



/* 猜你喜欢 */
.xtx-center .right .home-panel .head .icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    border-top: 4px solid #27ba9b;
    border-right: 4px solid #27ba9b;
    box-sizing: border-box;
    position: relative;
    transform: rotate(45deg);
}

.xtx-center .right .home-panel .head .icon::before {
    content: "";
    width: 10px;
    height: 10px;
    position: absolute;
    left: 0;
    top: 2px;
    background: #bcf1e6;
}

.xtx-center .right .home-panel .head {
    height: 66px;
    border-bottom: 1px solid #f5f5f5;
    padding: 18px 0;
    display: flex;
    align-items: baseline;
}

.xtx-center .right .home-panel .head h4 {
    font-size: 22px;
    font-weight: 400;
    padding-left: 10px;
}

/* 轮播图 */
/* .home-panel .xtx-carousel */
.home-panel {
    background: #fff;
    min-height: 446px;
    margin-top: 20px;
}

.home-pane .iconfont {
    font-size: 16px;
}

.xtx-carousel {
    height: 380px;
}

.xtx-carousel {
    width: 100%;
    height: 100%;
    min-width: 300px;
    min-height: 150px;
    position: relative;
}

.xtx-carousel .carousel-item.fade {
    opacity: 1;
    z-index: 1;
}

.xtx-carousel .carousel-item {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.5s linear;
}

.slider {
    display: flex;
    justify-content: space-around;
    padding: 0 40px;
}

.slider>a {
    width: 240px;
    text-align: center;
}

.slider>a img {
    padding: 20px;
    width: 230px;
    height: 230px;
}

.slider>a .name {
    font-size: 16px;
    color: #666;
    padding: 0 40px;
}

.ellipsis,
.ellipsis-2 {
    text-overflow: ellipsis;
    overflow: hidden;
}

.ellipsis {
    white-space: nowrap;
}

.slider>a .price {
    font-size: 16px;
    color: #cf4444;
    margin-top: 15px;
}

.xtx-carousel .carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    position: absolute;
    z-index: 2;
    text-align: center;
    line-height: 44px;
    opacity: 0;
    transition: all 0.5s;
}

.xtx-carousel .carousel-btn {
    top: 110px;
    opacity: 1;
    background: transparent;
    color: #ddd;
}

.xtx-carousel .carousel-btn.prev {
    left: -7px;
}

.xtx-carousel .carousel-btn.next {
    right: -7px;
}

.xtx-carousel .carousel-btn .iconfont {
    font-size: 48px;
}

.xtx-carousel .carousel-indicator {
    position: absolute;
    margin-top: 315px;
    z-index: 2;
    width: 100%;
    text-align: center;
}

.xtx-carousel .carousel-indicator ol li {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    cursor: pointer;
    margin-left: 5px;
}

.xtx-carousel .carousel-indicator ol li.active {
    background: #27ba9b;
}